package com.fc.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * @author Ács Ádám
 * 
 */
@Entity
@Table(name = "Food", catalog = "fc")
public class Food extends CommonEntity {
	@Id
	@Column(name = "id", unique = true, nullable = false)
	protected int id;

	@Column(name = "name", unique = true, nullable = false)
	private String name;

	@Column(name = "calorie", unique = false, nullable = false)
	private int calorie;

	@Column(name = "protein", unique = false, nullable = true)
	private int protein;

	@Column(name = "carbohydrate", unique = false, nullable = true)
	private int carbohydrate;

	@Column(name = "fat", unique = false, nullable = true)
	private int fat;

	@Column(name = "fiber", unique = false, nullable = true)
	private int fiber;

	@Column(name = "quantity", unique = false, nullable = true)
	private int quantity;

	@Column(name = "quantityid", unique = false, nullable = true)
	private int quantityId;

	@Column(name = "groupid", unique = false, nullable = true)
	private int groupId;

	public Food() {
		super();
	}

	public Food(int id, String name, int calorie, int protein, int carbohydrate, int fat, int fiber, int quantity, int quantityId, int groupId) {
		super();
		this.id = id;
		this.name = name;
		this.calorie = calorie;
		this.protein = protein;
		this.carbohydrate = carbohydrate;
		this.fat = fat;
		this.fiber = fiber;
		this.quantity = quantity;
		this.quantityId = quantityId;
		this.groupId = groupId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCalorie() {
		return calorie;
	}

	public void setCalorie(int calorie) {
		this.calorie = calorie;
	}

	public int getProtein() {
		return protein;
	}

	public void setProtein(int protein) {
		this.protein = protein;
	}

	public int getCarbohydrate() {
		return carbohydrate;
	}

	public void setCarbohydrate(int carbohydrate) {
		this.carbohydrate = carbohydrate;
	}

	public int getFat() {
		return fat;
	}

	public void setFat(int fat) {
		this.fat = fat;
	}

	public int getFiber() {
		return fiber;
	}

	public void setFiber(int fiber) {
		this.fiber = fiber;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public int getQuantityId() {
		return quantityId;
	}

	public void setQuantityId(int quantityId) {
		this.quantityId = quantityId;
	}

	public int getGroupId() {
		return groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
